﻿using AutoMapper;
using B.S.AuthCenter.Api.Read.DTOs;
using B.S.AuthCenter.Api.Read.DTOs.RoleMenu;
using B.S.AuthCenter.Domain;

namespace B.S.AuthCenter.Api.Read
{
    public class MyMapper:Profile
    {
        public MyMapper() 
        {

            CreateMap<UserRoleModel,URDTO>().ReverseMap();

            CreateMap<MenuParentDTO,MenuManageModel>().ReverseMap();

            CreateMap<RoleSelectDTO, RoleModel>().ReverseMap();

            CreateMap<RoleMenuDTO, RoleMenuModel>().ReverseMap();
        }
    }
}
